var RollPosCreateCtr = require('./../../../../FrameWork/Component/Roll/RollPosCreateCtr');
var _ = require('./../../../../FrameWork/we_underscore');
module.exports = cc.Class(
{
    extends: RollPosCreateCtr,

    properties:
    {
        randHpValue:
        {
            default: cc.Vec2.UP,
            displayName: '血值'
        }
    },

    setObjData(obj)
    {
        this._super();

        var hp = _.random(this.randHpValue.x, this.randHpValue.y);
        var ctr = obj.getComponent('BaseEnemyPlanePart');
        ctr.refreshLbHp(hp);
    }
});
